<script setup lang="ts">
// import useCommonStore from "@/store/common/index";
// const commonStore = useCommonStore();
// commonStore.siteConfigAction();
</script>

<template>
  <div class="main-box">
    <router-view v-slot="{ Component }">
      <keep-alive>
        <component
          :is="Component"
          :key="$route.name"
          v-if="$route.meta.keepAlive"
        />
      </keep-alive>
      <component
        :is="Component"
        :key="$route.name"
        v-if="!$route.meta.keepAlive"
      />
    </router-view>
  </div>
</template>
<style scoped lang="scss">
.main-box {
  position: relative;
  height: 100%;
}
</style>
